package com.lzb.spring.source;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.core.io.ClassPathResource;

import com.lzb.domain.MngUser;

public class Lesson04 {

	public static void main(String[] args) {
		ClassPathResource resource = new ClassPathResource("spring.xml");
		DefaultListableBeanFactory factory = new DefaultListableBeanFactory();
		XmlBeanDefinitionReader beanDefinition = new XmlBeanDefinitionReader(factory);
		beanDefinition.loadBeanDefinitions(resource);
		
		factory.getBean("");
		
		Thread.currentThread().getClass().getClassLoader().getResourceAsStream("");
	}
}
